<?php
$this->breadcrumbs=array(
	'Printings'=>array('index'),
	$model->_id,
);

$this->menu=array(
	array('label'=>'List Printing', 'url'=>array('index')),
	array('label'=>'Create Printing', 'url'=>array('create')),
	array('label'=>'Update Printing', 'url'=>array('update', 'id'=>$model->_id)),
	array('label'=>'Delete Printing', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Printing', 'url'=>array('admin')),
);
?>

<h1>View Printing #<?php echo $model->_id; ?></h1>

<?php
$url = $model->fileBehavior->fileUrl;
$value = $url ? CHtml::link('Download', $url) : '-';
$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'_id',
		'province',
		'sector',
		'status',
		array(
			'name'=>'file',
			'type'=>'raw',
			'value'=>$value
		),
		array('name'=>'note', 'type'=>'ntext'),
	),
));
?>
